Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Type Check #1046

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Debug Type Check #1046

merged 3 commits into from
Jan 8, 2025

Conversation

refringe
Copy link
Contributor

@refringe refringe commented Jan 8, 2025

This updates the debug command to type check before executing the run entry. If the check fails the debug will not continue.

This unfortunately breaks the TSX watch function and the debugger now has to be manually restarted when code is changed. I've been unable to find a solution to this.

While not ideal, an alternative is to only type-check on build and leave debug using TSX directly, like we were. Let me know if you'd rather go that way and get your watch back.


Also includes possible fixes (bbf56f7) for the two type errors that are currently holding back debug builds.

I say possible because

  • I've only solved the issues with the current types and have no idea if the types are actually correct
  • Have only resolved the type errors within the IDE/TSC and have not actually tested in game

They need to be reviewed.

This updates the npm debug command to type check before executing the run entry. If the check fails the debug will not continue.
These are possible fixes for the two type errors that are currently holding back type checking this branch. I say possible because it's not tested in game and I've only solved the issues with the current types and have no idea if the types are actually correct.

Needs a review.
@refringe refringe added the enhancement New feature or request label Jan 8, 2025
@refringe refringe requested a review from chompDev January 8, 2025 00:46
@refringe refringe self-assigned this Jan 8, 2025
@chompDev chompDev merged commit 929efb7 into sp-tarkov:4.0.0-DEV Jan 8, 2025
0 of 3 checks passed
@refringe refringe deleted the type-check branch January 8, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants